package cn.User;

import cn.book.BookList;
import cn.operate.IOPeration;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-24
 * Time:14:07
 */
public abstract class User {
    String name;
    public IOPeration[] ioPerations;

    public User(String name)
    {
        this.name=name;
    }
    public abstract int menu();
    public void doOperation(int choice, BookList booklist)
    {
        this.ioPerations[choice].work(booklist);
    }

}
